{% extends "base.html" %}

{% block title %}{% if flatpage.title %}{{flatpage.title}}{% else %}Feeds{% endif %} - {{ block.super }}{% endblock %}

{% block content %}

{% if flatpage.content %}
{{flatpage.content}}
{% else %}
<h1>Feeds</h1>
Links to feeds for individual objects (news, projects) are on the actual site of that object.
{% endif %}

<h2> News Feeds </h2>

<h3> News </h3>

<span class="feeds">
    <a class="feedlink" href="/feeds/rss/news/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/news/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
    {% subscription_link request "n" %}
</span>


<h3> Comments </h3>

<span class="feeds">
    <a class="feedlink" href="/feeds/rss/comments/news/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/comments/news/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
    {% subscription_link request "nc" %}
</span>


<h2> Project Feeds </h2>

<h3> Recent Releases </h3>

<span class="feeds">
    <a class="feedlink" href="/feeds/rss/releases/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/releases/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
    {% subscription_link request "pr" %}
</span>


<h3>Projects of the Month </h3>

<span class="feeds">
    <a class="feedlink" href="/feeds/rss/potm/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/potm/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
    {% subscription_link request "pm" %}
</span>
<h3> Comments </h3>

<span class="feeds">
    <a class="feedlink" href="/feeds/rss/comments/projects/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/comments/projects/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
    {% subscription_link request "pc" %}
</span>


<h2> Snippet Feeds </h2>

<h3> Snippets </h3>
<h4> by date </h4>
<span class="feeds">
    <a class="feedlink" href="/feeds/rss/snippets/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/snippets/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
    {% subscription_link request "s" %}
</span>

<h4> by rating </h4>
<span class="feeds">
    <a class="feedlink" href="/feeds/rss/snippets/rating/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/snippets/rating/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
</span>

<h4> by number of bookmarks </h4>
<span class="feeds">
    <a class="feedlink" href="/feeds/rss/snippets/bookmarks/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/snippets/bookmarks/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
</span>


<h3> Comments </h3>

<span class="feeds">
    <a class="feedlink" href="/feeds/rss/comments/snippets/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/comments/snippets/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
    {% subscription_link request "sc" %}
</span>


<h2> All Comments</h2>
<span class="feeds">
    <a class="feedlink" href="/feeds/rss/comments/" title="rss feed">
       <img class="feedicon" src="/media/images/rss_icon.png" alt="rss icon"/>
    </a>
    <a class="feedlink" href="/feeds/atom/comments/" title="atom feed">
       <img class="feedicon" src="/media/images/atom_icon.png" alt="atom icon"/>
    </a>
</span>

{% endblock %}